<?php

//这是查看结果的视图
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />";
require('connect.sql.php');
require('sql.function.php');
require('admin.function.php');

session_start();
$power=1;
if(isset($_SESSION['userid'])){
	$power=getdataf('duty',"usertable","userid",$_SESSION['userid']);
}
else{
	header("Location:../index.php");
}
	
if($power==0){
	include("user.function.php");
	include("../views/user.head.php");
	include("../views/user.index.php");
	user_index(2);
	include("../views/user.bottom.php");

}
else{
	echo "你的权限不够";
}
	
?>
<?php

?>